**analysis performed using Stata 9.2
** replication file for table 6 from Leeds and Mattes "Alliance Politics During the Cold War"
**Based on atop3_0dyEUG.dta and Russett and Oneal (2001) replication file
set mem 250m
use "LeedsMattesROrep.dta", clear
sort dyad year
iis dyad 
tis year  
set matsize 100
xtgee dispute1 smldmat smldep smigoabi lcaprat allies noncontg logdstab minrpwrs, family(binomial) link(logit) corr(ar1) force robust nolog
xtgee dispute1 smldmat smldep smigoabi lcaprat atopally noncontg logdstab minrpwrs, family(binomial) link(logit) corr(ar1) force robust nolog
xtgee dispute1 smldmat smldep smigoabi lcaprat nonaggonly notnonagg noncontg logdstab minrpwrs, family(binomial) link(logit) corr(ar1) force robust nolog

**cold war only
use "LeedsMattesROrepCW.dta", clear
sort dyad year
iis dyad
tis year
xtgee dispute1 smldmat smldep smigoabi lcaprat allies noncontg logdstab minrpwrs, family(binomial) link(logit) corr(ar1) force robust nolog 
xtgee dispute1 smldmat smldep smigoabi lcaprat atopally noncontg logdstab minrpwrs, family(binomial) link(logit) corr(ar1) force robust nolog
xtgee dispute1 smldmat smldep smigoabi lcaprat nonaggonly notnonagg noncontg logdstab minrpwrs, family(binomial) link(logit) corr(ar1) force robust nolog

**pre Cold War only
use "LeedsMattesROrepPCW.dta", clear
sort dyad year
iis dyad 
tis year  
xtgee dispute1 smldmat smldep smigoabi lcaprat allies noncontg logdstab minrpwrs, family(binomial) link(logit) corr(ar1) force robust nolog 
xtgee dispute1 smldmat smldep smigoabi lcaprat atopally noncontg logdstab minrpwrs, family(binomial) link(logit) corr(ar1) force robust nolog
xtgee dispute1 smldmat smldep smigoabi lcaprat nonaggonly notnonagg noncontg logdstab minrpwrs, family(binomial) link(logit) corr(ar1) force robust nolog




